package tests;

import common.Utils;

/**
 * 测试未登陆状态下的页面
 */

public class NoLoginPage extends Utils {
    //同时实现多个url
    private static String listurl = "http://127.0.0.1:8080/blog_list.html";
    private static String detailurl ="http://127.0.0.1:8080/blog_detail.html";
    private static String editurl ="http://127.0.0.1:8080/blog_edit.html";

    public NoLoginPage() {
        super(listurl);
    }

    public void NoLoginList(){
        String title = driver.getTitle();
        System.out.println(title);
        assert title.equals("博客登陆页");
//        driver.quit();
    }
    public void NoLoginDetail(){
        driver.get(detailurl);
        String title = driver.getTitle();
        System.out.println(title);
        assert title.equals("博客登陆页");
        driver.quit();
    }
}
